package com.example.graduationdesignbackend.service;

import com.example.graduationdesignbackend.dto.PageDto;
import com.example.graduationdesignbackend.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.graduationdesignbackend.query.PageQuery;
import com.example.graduationdesignbackend.query.ProductQuery;
import com.example.graduationdesignbackend.res.Res;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuze
 * @since 2024-05-04
 */
public interface IProductService extends IService<Product> {
    void createProduct(Product product);

    Res editProduct(Product product);

    PageDto<Product> getMyProduct(ProductQuery productQuery);

    Res listingProducts(String id);

    Res  delistingProducts(String id);

    Res examine(String id);
    Res examineFail(String id);

    PageDto<Product> getProductPage(ProductQuery productQuery);

}
